package com.imjohn.mapper;

import com.imjohn.entity.Aticle;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author zhangwei
 * @date 2021-07-21 下午 4:44
 */
@Repository
public interface PageMapper {
    /**
     * 查询全部文章
     * @return
     */
    List<Aticle> GetAllAticle(int pageNum, int pageSize);
    /**
     * 根据用户名查询全部文章-分页
     * @return
     */
    List<Aticle> GetByNameAticle(int pageNum, int pageSize, String userName);

}
